package com.aigou.admin.aigouspringboot.mapper;

import com.aigou.admin.aigouspringboot.entity.ReceivingAddress;

import java.util.List;

public interface ReceivingAddressMapper {
    int deleteByPrimaryKey(String id);

    List<ReceivingAddress> selectAll();

    int insert(ReceivingAddress record);

    int insertSelective(ReceivingAddress record);

    ReceivingAddress selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ReceivingAddress record);

    int updateByPrimaryKey(ReceivingAddress record);

    List<ReceivingAddress> selectByUserId(String userId);

    int insertAddress(ReceivingAddress record);

    int updateDefaultAddresses(ReceivingAddress record);

    int updateisDefaultAddresses(ReceivingAddress record);

    int updateIsDefault();

    List<ReceivingAddress> selectByUserIdAndIsDefault(String userId);
}


